/**
 * @description 空间 @ 用户关系 数据模型
 * @author 阿猫
 */

const sqe = require('../seq')

const { INTEGER, BOOLEAN } = require('../types')

const AtRelation = sqe.define('atRelation', {
    userId: {
        type: INTEGER,
        allowNull: false,
        comment: '用户 Id'
    },
    blogId: {
        type: INTEGER,
        allowNull: false,
        comment: '空间 Id'
    },
    isRead: {
        type: BOOLEAN,
        allowNull: false,
        defaultValue: false, // 默认未读
        comment: '是否已读'
    }
})


module.exports = AtRelation